package com.bnp.reporting.java8.lambda;

/**
 * Created by adib on 09/11/14.
 */
public class UseRunnable {
    public static void main(String[] args) {

        Runnable runnable1 = new Runnable() {
            @Override
            public void run() {
                System.out.println("Running Thread 1");
            }
        };

        Runnable runnable2 = new Runnable() {
            @Override
            public void run() {
                System.out.println("Running Thread 2");
            }
        };

        new Thread(runnable1).start();
        new Thread(runnable2).start();
    }
}
